<?php /* Smarty version 2.6.16, created on 2013-09-11 14:01:58
         compiled from d:%5Cwww%5Cclient%5Cgetbids/templates/default//modules/leads/leads1.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'd:\\www\\client\\getbids/templates/default//modules/leads/leads1.tpl', 61, false),array('modifier', 'base64_encode', 'd:\\www\\client\\getbids/templates/default//modules/leads/leads1.tpl', 65, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/dashboard.css"><link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/find_job_list.css">'; ?>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>


<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['cms_left_content'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            <section class="title_box">
            	<h4>Available Leads</h4>
            	 <section class="clear"></section>
                 
                </section>                             
				<?php if ($this->_tpl_vars['msg']): ?><span style="padding:10px;"> <?php echo $this->_tpl_vars['msg']; ?>
 </span><?php endif; ?>
                <section class="mainbox_findjobs">
                
				<section class="leads_manag_box">
                <form name="searchfrm" id="searchfrm" action="<?php echo $this->_tpl_vars['siteroot']; ?>
/leads/leads/" method="POST" >
                 <section class="group_search_box">
                  <span class="lF">
					<select class="select" id="jobtypeid" name="jobtypeid" >
                        <option value="">Select Job Type</option>
                        <?php unset($this->_sections['j']);
$this->_sections['j']['name'] = 'j';
$this->_sections['j']['loop'] = is_array($_loop=$this->_tpl_vars['jobtypeArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['j']['show'] = true;
$this->_sections['j']['max'] = $this->_sections['j']['loop'];
$this->_sections['j']['step'] = 1;
$this->_sections['j']['start'] = $this->_sections['j']['step'] > 0 ? 0 : $this->_sections['j']['loop']-1;
if ($this->_sections['j']['show']) {
    $this->_sections['j']['total'] = $this->_sections['j']['loop'];
    if ($this->_sections['j']['total'] == 0)
        $this->_sections['j']['show'] = false;
} else
    $this->_sections['j']['total'] = 0;
if ($this->_sections['j']['show']):

            for ($this->_sections['j']['index'] = $this->_sections['j']['start'], $this->_sections['j']['iteration'] = 1;
                 $this->_sections['j']['iteration'] <= $this->_sections['j']['total'];
                 $this->_sections['j']['index'] += $this->_sections['j']['step'], $this->_sections['j']['iteration']++):
$this->_sections['j']['rownum'] = $this->_sections['j']['iteration'];
$this->_sections['j']['index_prev'] = $this->_sections['j']['index'] - $this->_sections['j']['step'];
$this->_sections['j']['index_next'] = $this->_sections['j']['index'] + $this->_sections['j']['step'];
$this->_sections['j']['first']      = ($this->_sections['j']['iteration'] == 1);
$this->_sections['j']['last']       = ($this->_sections['j']['iteration'] == $this->_sections['j']['total']);
?>
                            <option value="<?php echo $this->_tpl_vars['jobtypeArray'][$this->_sections['j']['index']]['id']; ?>
" <?php if ($this->_tpl_vars['jobtypeid'] == $this->_tpl_vars['jobtypeArray'][$this->_sections['j']['index']]['id']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['jobtypeArray'][$this->_sections['j']['index']]['trade_category']; ?>
</option>
                        <?php endfor; endif; ?>
                        
                    </select>                  
                    <input type="submit" class="btn" value="Go">
                    &nbsp;&nbsp;
                    <input type="button" class="btn" value="Clear" onclick="javascript:window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/leads/leads/';">
                    <section class="clear"></section>
                       </span>   
                    <span class="rF" style="padding-top:10px;" >"Want to see more leads? Update your Skills and work area – <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/myservicelocation/">click here</a>" </span>
         <section class="clear"></section>
                  </section>
                  </form>
                	<dl>
	                  	<dt class="col1">Job ID</dt>
                        <dt class="col2">Trade Category</dt>
                        <dt class="col3">Job type</dt>
                        <dt class="col4">Job Description</dt>
                        <dt class="col5">Budget</dt>
                        <dt class="col6">Postal Code</dt>
                        <dt class="col7 textcenter">Action</dt>
                        <section class="clear"></section>
                    </dl>
                    <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['alljobsArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>           
                       <dl class="padcol">           
                        <dd class="col1">#PR<?php echo $this->_tpl_vars['alljobsArray'][$this->_sections['i']['index']]['postjob_id']; ?>
</dd>
                        <dd class="col2"><?php echo $this->_tpl_vars['alljobsArray'][$this->_sections['i']['index']]['tradename']; ?>
</dd>
                        <dd class="col3"><?php echo $this->_tpl_vars['alljobsArray'][$this->_sections['i']['index']]['jobtypename']; ?>
</dd>
                        <dd class="col4"><?php echo ((is_array($_tmp=$this->_tpl_vars['alljobsArray'][$this->_sections['i']['index']]['job_desc'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, "") : smarty_modifier_truncate($_tmp, 50, "")); ?>
</dd>
                        <dd class="col5">Under $<?php echo $this->_tpl_vars['alljobsArray'][$this->_sections['i']['index']]['budgetname']; ?>
</dd>
                        <dd class="col6"><span style="padding-left:20px;"> <?php echo $this->_tpl_vars['alljobsArray'][$this->_sections['i']['index']]['area']; ?>
 </span></dd>
                        <dd class="col7 textcenter">             
                            <input type="button" onclick="window.location.href='<?php echo $this->_tpl_vars['siteroot']; ?>
/leads/<?php echo ((is_array($_tmp=$this->_tpl_vars['alljobsArray'][$this->_sections['i']['index']]['postjob_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/buylead/'" value="Detail" class="btn" />
                            <!-- <?php if ($this->_tpl_vars['alljobsArray'][$this->_sections['i']['index']]['jobdetail'] != 'Interested'): ?>View Detail<?php else: ?>Interested<?php endif; ?> -->
                         </dd>
            
                        <section class="clear"></section>
                       </dl>
                       <?php endfor; else: ?>
                       <dl class="padcol">
                         <div class="error" style="padding:10px;text-align:center">Oops, Sorry there are no any leads.</div>
                     </dl>
                       <?php endif; ?>
                  		<?php if ($this->_tpl_vars['pagenation']): ?>
                            <section class="pagna">
                            <?php echo $this->_tpl_vars['pagenation']; ?>

                            </section>
                        <?php endif; ?>
                             

                        
                        <section class="clear"></section>
                </section> 
                
                 <section class="clear"></section>
                 	 <section class="bgimg_shadow"></section>
                 	<section class="clear"></section>
                </section>  
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>